import {
    createRouter,
    createWebHashHistory,
} from 'vue-router'


const routes = [
    // 路由的默认路径
    {
        path: '/',
        name: 'Login',
        component: function () {
            return import('../View/myLogin.vue')
        }
    },
    {
        path: '/upss',
        name: 'Upload',
        component: function () {
            return import('../View/uploadImg.vue')
        }
    },


]

// 创建路由对象
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router;
